﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013DD RID: 5085
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyEnterScRsp : IMessage<TrainPartyEnterScRsp>, IMessage, IEquatable<TrainPartyEnterScRsp>, IDeepCloneable<TrainPartyEnterScRsp>, IBufferMessage
	{
		// Token: 0x17004021 RID: 16417
		// (get) Token: 0x0600E3C3 RID: 58307 RVA: 0x00260FA4 File Offset: 0x0025F1A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyEnterScRsp> Parser
		{
			get
			{
				return TrainPartyEnterScRsp._parser;
			}
		}

		// Token: 0x17004022 RID: 16418
		// (get) Token: 0x0600E3C4 RID: 58308 RVA: 0x00260FAB File Offset: 0x0025F1AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyEnterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004023 RID: 16419
		// (get) Token: 0x0600E3C5 RID: 58309 RVA: 0x00260FBD File Offset: 0x0025F1BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyEnterScRsp.Descriptor;
			}
		}

		// Token: 0x0600E3C6 RID: 58310 RVA: 0x00260FC4 File Offset: 0x0025F1C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyEnterScRsp()
		{
		}

		// Token: 0x0600E3C7 RID: 58311 RVA: 0x00260FCC File Offset: 0x0025F1CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyEnterScRsp(TrainPartyEnterScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E3C8 RID: 58312 RVA: 0x00260FF1 File Offset: 0x0025F1F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyEnterScRsp Clone()
		{
			return new TrainPartyEnterScRsp(this);
		}

		// Token: 0x17004024 RID: 16420
		// (get) Token: 0x0600E3C9 RID: 58313 RVA: 0x00260FF9 File Offset: 0x0025F1F9
		// (set) Token: 0x0600E3CA RID: 58314 RVA: 0x00261001 File Offset: 0x0025F201
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600E3CB RID: 58315 RVA: 0x0026100A File Offset: 0x0025F20A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyEnterScRsp);
		}

		// Token: 0x0600E3CC RID: 58316 RVA: 0x00261018 File Offset: 0x0025F218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyEnterScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E3CD RID: 58317 RVA: 0x00261048 File Offset: 0x0025F248
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E3CE RID: 58318 RVA: 0x00261087 File Offset: 0x0025F287
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E3CF RID: 58319 RVA: 0x0026108F File Offset: 0x0025F28F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E3D0 RID: 58320 RVA: 0x00261098 File Offset: 0x0025F298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E3D1 RID: 58321 RVA: 0x002610CC File Offset: 0x0025F2CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E3D2 RID: 58322 RVA: 0x0026110A File Offset: 0x0025F30A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyEnterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E3D3 RID: 58323 RVA: 0x0026113B File Offset: 0x0025F33B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E3D4 RID: 58324 RVA: 0x00261144 File Offset: 0x0025F344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005A1D RID: 23069
		private static readonly MessageParser<TrainPartyEnterScRsp> _parser = new MessageParser<TrainPartyEnterScRsp>(() => new TrainPartyEnterScRsp());

		// Token: 0x04005A1E RID: 23070
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A1F RID: 23071
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04005A20 RID: 23072
		private uint retcode_;
	}
}
